package com.alexsh.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;

import java.util.ResourceBundle;

/**
 * @author Alexander Shmygin <AShmygin@luxoft.com>
 * @version 1.0
 */

@Controller
public class MenuController {

    private static final ResourceBundle APP_BUNDLE = ResourceBundle.getBundle("app");

    @ModelAttribute("appVersion")
    public String getDbVersion() {
        return APP_BUNDLE.getString("app.version");
    }
}
